"""
@Time ： 2021/11/10 16:37
@Auth ： ChenZhangKun
"""
from selenium import webdriver
from selenium.webdriver.common.by import By

webDriver = webdriver.Chrome(r'D:\sofwares\chrom\chromedriver.exe')

webDriver.get('http://cdn1.python3.vip/files/selenium/sample1.html')

elements = webDriver.find_elements(By.TAG_NAME, "span")

for element in elements:
    print(element.text)

while True:
    pass
